package com.yuandengta.common.constant;

/**
 * 仓储服务常量类 {@link WareConstant}
 *
 * @author Kevin
 * @email: 178676392@qq.com
 */
public class WareConstant {

    /**
     * 采购单状态
     */
    public enum PurchaseStatusEnum {
        /**
         * 新建
         */
        CREATED(0, "新建"),
        /**
         * 已分配
         */
        ASSIGNED(1, "已分配"),
        /**
         * 已领取
         */
        RECEIVED(2, "已领取"),
        /**
         * 已完成
         */
        FINISHED(3, "已完成"),
        /**
         * 有异常
         */
        ERROR(4, "有异常");

        private int code;
        private String msg;

        PurchaseStatusEnum (int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    /**
     * 采购状态
     */
    public enum PurchaseDetailEnum {
        /**
         * 新建
         */
        CREATED(0, "新建"),
        /**
         * 已分配
         */
        ASSIGNED(1, "已分配"),
        /**
         * 采购中
         */
        BUYING(2, "采购中"),
        /**
         * 已完成
         */
        FINISHED(3, "已完成"),
        /**
         * 采购失败
         */
        FAILED(4, "采购失败");

        private int code;
        private String msg;

        PurchaseDetailEnum (int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
